$(document).ready(
			function() {
				$(".div2").click(
						function() {
							$(this).next("div").slideToggle("slow").siblings(
									".div3:visible").slideUp("slow");
						});
			});
	function openurl(url) {
		var rframe = parent.document.getElementById("rightFrame");
		rframe.src = url;
	}
	
	$(document).ready(function(){
		var rframe = parent.document.getElementById("rightFrame");
		rframe.src = 'userfilesQuery.html';

        //更新数据
        $("#updateData").click(function () {
            $("#loading").css("display","block");
            $("#updateData").css("display","none");
            $.post("/fileSys/updateServlet",function (data,status) {
                $("#loading").css("display","none");
                $("#updateData").css("display","block");

                var result=data;
                if(result.msg==0){
                    /* alert("登陆成功"); */
                    top.location.href="/fileSys/index.html";
                    /* document.location.href='/index.html'; */
                }else{
                    alert(result.msg);
                }

            });

        });

        //退出登录
        $("#outLogin").click(function () {

            $.get("/fileSys/outLoginServlet",function () {
                top.location.href="/fileSys/login.html";
            })
            
        });
        
        
        
        
		});






	//退出登录
    // function outLoginClick(){
    //
    	// var clot = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP')
     //    clot.open('GET', '/fileSys/outLoginServlet', true);
     //    clot.send();
     //
     //    clot.onreadystatechange = function () {
     //        if (clot.readyState == 4 && clot.status == 200) {
     //        	top.location.href="/fileSys/login.html";
     //        }
     //    }
    	//
    // }
	